Skip to content

Draft: Do not review, add support for specific geometry types #2803

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

panbhag-ch
Copy link
Contributor

No description provided.

@panbhag-ch panbhag-ch changed the title add support for specific geometry types Draft: Do not review, add support for specific geometry types Apr 4, 2025
@panbhag-ch panbhag-ch marked this pull request as draft April 4, 2025 02:28
Copy link

codecov bot commented Apr 6, 2025

Codecov Report

Attention: Patch coverage is 0% with 115 lines in your changes missing coverage. Please review.

Project coverage is 51.52%. Comparing base (0890e1e) to head (faac66a).

Files with missing lines Patch % Lines
flow/connectors/mysql/qvalue_convert.go 0.00% 65 Missing ⚠️
flow/model/qvalue/qvalue.go 0.00% 36 Missing ⚠️
flow/model/qvalue/equals.go 0.00% 14 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2803      +/-   ##
==========================================
- Coverage   51.67%   51.52%   -0.16%     
==========================================
  Files         184      184              
  Lines       27777    27882     +105     
==========================================
+ Hits        14355    14366      +11     
- Misses      11786    11882      +96     
+ Partials     1636     1634       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@panbhag-ch panbhag-ch requested a review from serprex April 7, 2025 18:06
// Check the column type name to determine specific geometry type
colType := strings.ToLower(string(field.Name))
switch {
case strings.Contains(colType, "point"):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HasPrefix?

Copy link
Member

@serprex serprex Apr 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

field.Name is column's name, not column's type. We don't have enough information here to figure it out. May need to make geometry all fall under one QValueKind & put SRID as a field for QValueGeometry

case "geometry", "point", "polygon", "linestring", "multipoint", "multipolygon", "geomcollection":
return qvalue.QValueKindGeometry, nil
case "geometry", "point", "linestring", "polygon", "multipoint", "multilinestring", "multipolygon", "geometrycollection":
switch ct {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Earlier check is on strings.ToLower(ct) this check is on ct,
maybe we should instead merge with parent switch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants